/************************************************
 * Copyright (c) 2007 ~ 2009, 
 * All rights reserved.
 * Version   : 1.0
 * Author    : lengsh@gmail.com 
 * Date      : 2009.1.2
 ************************************************/

#ifndef  __HTTP_NO_HEADER_CONNECTION__H__
#define  __HTTP_NO_HEADER_CONNECTION__H__

#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <signal.h>
#include <string>
#include <iostream>
#include "IConnection.h"

using namespace std;
namespace netproxy {
	class Http2Conn : public IConnection
	{
		public:
//			virtual bool getStatus(int imax);
			Http2Conn(const char *hname, int port, int ik, const char *sb ):
				IConnection(hname, port, ik, sb)
		{

		}
			virtual ~Http2Conn(){   disConnect();     }
			virtual bool Connect();
			virtual bool ReConnect();
			virtual int Proxy(const char *data, unsigned int dlen, char **wbuf,unsigned &wsize, unsigned &wbytes, bool bReply);
		protected:
			virtual void disConnect();
			bool remove_header(char **wbuf, unsigned &wbytes );

	};

}
#endif  //
